home *** CD-ROM | disk | FTP | other *** search
/ Aminet 5 / Aminet 5 - March 1995.iso / Aminet / util / misc / ManBrowser1_1.lha / Makefile < prev    next >
Makefile  |  1994-11-12  |  2KB  |  63 lines

  1. # Makefile, for GNU-C 2.6.0
  2. # Note: it seems that -fbaserel is broken, therefore I don't use it. -:(
  3. # Note: this makefile probably doesn't work. I couldn't test it,
  4. #       since several parts of my system are broken -:(
  5.  
  6. CPU        = 68000
  7.  
  8. DISTFILE    = ManualBrowser1_1.lha
  9.  
  10. EXEC        = ManualBrowser
  11. CSOURCE        = main.c DynamicHost.c
  12. SASSOURCE    = SAS_Startup.a SAS_Sprintf.a
  13. GCCSOURCE    = GCC_Startup.s GCC_Sprintf.s HookEntryA1.s
  14. OTHERSOURCE    = lmkfile Makefile Inlines.h Globals.h
  15. DOCS        = ManualBrowser.guide ManualBrowser.readme COPYING
  16. OTHER        = ManualBrowser.config
  17.  
  18. PGP_RELATED    = md5_DigestFile.asc md5_DigestFile t:md5_DigestFile stieber.asc
  19.  
  20. DISTFILES1    = $(EXEC) $(CSOURCE) $(SASSOURCE) $(OTHERSOURCE)
  21. DISTFILES2    = $(GCCSOURCE) $(DOCS) $(OTHER)
  22.  
  23. OBJS        = $(GCCSOURCE:.s=.o) $(CSOURCE:.c=.o)
  24.  
  25. CC = gcc -m$(CPU)
  26. CPPFLAGS = -DV39 -DUtilityBase=__UtilityBase
  27. CFLAGS = -Wall -Wpointer-arith -Wmissing-prototypes -O2
  28. LDFLAGS = -noixemul -nostartfiles -s
  29. ASFLAGS = -mc$(CPU)
  30.  
  31. all: $(EXEC)
  32.  
  33. ManualBrowser: $(OBJS)
  34.     $(CC) $(LDFLAGS) -o $@ $^
  35.  
  36. main.o:        main.c Globals.h Inlines.h
  37. DynamicHost.o:    DynamicHost.c Globals.h Inlines.h
  38.  
  39. COPYING: man:GNU/COPYING
  40.     copy man:GNU/COPYING COPYING
  41.  
  42. stieber.asc:
  43.     pgp -kxa stieber stieber
  44.  
  45. md5_DigestFile.asc: md5_DigestFile
  46.     pgp <>KCON:0/16/640/150/PGP -sat +clearsig=on md5_DigestFile
  47.  
  48. md5_DigestFile: $(EXEC) $(DISTFILES1) $(DISTFILES2) stieber.asc
  49.     md5sum >t:md5_DigestFile -b $(EXEC)
  50.     md5sum >>t:md5_DigestFile $(DISTFILES1)
  51.     md5sum >>t:md5_DigestFile $(DISTFILES2)
  52.     join t:md5_DigestFile stieber.asc TO md5_DigestFile
  53.     Delete t:md5_DigestFile
  54.  
  55. clean:
  56.     @-Delete $(OBJS) $(EXEC) $(DISTFILE) $(PGP_RELATED) COPYING
  57.  
  58. dist: $(DISTFILE)
  59.  
  60. $(DISTFILE): md5_DigestFile.asc
  61.     @-Delete $(DISTFILE)
  62.     lha -aAFv0 a $(DISTFILE) $(EXEC) $(DISTFILES1) $(DISTFILES2) md5_DigestFile.asc
  63.